package com.dd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("role")
@ResponseBody
public class RoleController {

    @RequestMapping(value = "/getRoleList")
    public String getRoleList(){
        System.out.println("查询");
        return "查询";
    }

    @RequestMapping(value = "/addRole")
    public String addRole(){
        System.out.println("添加");
        return "添加";
    }

    @RequestMapping(value = "/updateRole")
    public String updateRole(){
        System.out.println("修改");
        return "修改";
    }

    @RequestMapping(value = "/deleteRole")
    public String deleteRole(){
        System.out.println("删除");
        return "删除";
    }
}
